package com.freewater.cargotracker.infrastructure.persistence.mybatis.dbobject;

import com.freewater.cargotracker.domain.model.handlingevent.HandlingEvent;

import java.time.LocalDateTime;

public class HandlingEventPO {

    private Long id;
    private CargoPO cargoPO;
    private VoyagePO voyagePO;
    private HandlingEvent.Type type;
    private LocationPO location;
    private LocalDateTime registrationTime;
    private LocalDateTime completionTime;
    private int version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public VoyagePO getVoyagePO() {
        return voyagePO;
    }

    public void setVoyagePO(VoyagePO voyagePO) {
        this.voyagePO = voyagePO;
    }

    public CargoPO getCargoPO() {
        return cargoPO;
    }

    public void setCargoPO(CargoPO cargoPO) {
        this.cargoPO = cargoPO;
    }

    public HandlingEvent.Type getType() {
        return type;
    }

    public void setType(HandlingEvent.Type type) {
        this.type = type;
    }

    public LocationPO getLocation() {
        return location;
    }

    public void setLocation(LocationPO location) {
        this.location = location;
    }

    public LocalDateTime getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(LocalDateTime registrationTime) {
        this.registrationTime = registrationTime;
    }

    public LocalDateTime getCompletionTime() {
        return completionTime;
    }

    public void setCompletionTime(LocalDateTime completionTime) {
        this.completionTime = completionTime;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }
}

